#include "cursorselect.h"

CursorSelectDlg::CursorSelectDlg(QWidget* parent=0) : QDialog(parent) {
  setupUi(this);
  
  // These are defined in main.cpp before we launch the QApplication
  extern QHash<QString, int>cursors;
  
  QStringList list;
  QHash<QString, int>::const_iterator it;
  for (it = cursors.begin(); it != cursors.end(); it++)
    list.append(it.key());
  
  QList<QListWidgetItem*> items = createListItemsFromCursors(*this, list);
  QList<QListWidgetItem*>::const_iterator itwidgets;
  for (itwidgets = items.begin(); itwidgets != items.end(); itwidgets++)
    cursorList->addItem(*itwidgets);
}

